package com.aisile.user.controller.v1;

import com.aisile.apis.user.UserRelationControllerApi;
import com.aisile.model.common.dtos.ResponseResult;
import com.aisile.model.user.dtos.UserRelationDto;
import com.aisile.user.service.UserRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther:yry
 * @Date:2024/1/13 0013
 * @VERSON:1.0
 */
@RestController
@RequestMapping("/api/v1/user")
public class UserRelationController implements UserRelationControllerApi {

    @Autowired
    public UserRelationService userRelationService;

    @PostMapping("/user_follow")
    @Override
    public ResponseResult follow(@RequestBody UserRelationDto dto) {
        return userRelationService.follow(dto);
    }
}
